﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OnlineCooperation.Entity
{
    public class Team
    {
        public int ID;                          //自动分配，唯一
        public String Name;
        public String Description;      //允许空
        public int AdminID;                //赋值为创建者编号，拥有解散权限，删除成员权限

        //空构造函数
        public Team()
        {
            ID = 0;
            Name = null;
            Description = null;
            AdminID = 0;
        }

        //给定除description外所有参数的构造函数
        public Team(int id, String name, int adminid)
        {
            ID = id;
            Name = name;
            Description = null;
            AdminID = adminid;
        }

        //给定所有参数的构造函数
        public Team(int id, String name, String description, int adminid)
        {
            ID = id;
            Name = name;
            Description = description;
            AdminID = adminid;
        }
    }
}